<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <#include "../head.ftl"/>
    <!--页面模版宏-->
    <#include "../_macro/edit.ftl"/>
    <#include "edit_js.ftl"/>
</head>
<body class="margin-0">
<form class="layui-form" action="">
    <input type="hidden" value="${data.id!}" name="id"/>
    <@editBtnView>
        <button type="submit" class="layui-btn layui-btn-sm layui-btn-primary" lay-submit lay-filter="save">保存</button>
    </@editBtnView>
    <@editView>
    <div class="layui-col-md4">
        <label class="layui-form-label">角色名</label>
        <div class="layui-input-inline">
            <input name="name" max-length="" min-length="" lay-verify="required" type="text" value="${data.name!}" placeholder="请输入内容" class="layui-input"/>
        </div>
    </div>
    <div class="layui-col-md4">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <select name="state" lay-verify="">
                <option value=""></option>
                <@dict code="TF">
                <#list dicts as dict>
                <option value="${dict.value}" ${(data.state?? && data.state?string==dict.value)?string('selected','')}>${dict.note}</option>
                </#list>
            </@dict>
        </select>
    </div>
    </div>
    <div class="layui-col-md12">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline">
            <textarea name="remark" max-length="" min-length="" lay-verify="" placeholder="请输入内容" class="layui-textarea">${data.remark!}</textarea>
        </div>
    </div>
    </@editView>
</form>
<@editJs saveUrl="/role/data/save"/>
</body>
</html>